package com.lyf.shop.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lyf.common.core.annotation.Excel;
import com.lyf.common.core.web.domain.BaseEntity;

/**
 * 员工对象 t_employee
 * 
 * @author lyf
 * @date 2023-02-10
 */
public class Employee extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 超市id */
    @Excel(name = "超市id")
    private Long supermarketId;

    private String supermarketName;

    private String postName;

    /** 员工姓名 */
    @Excel(name = "员工姓名")
    private String name;

    /** 年龄 */
    @Excel(name = "年龄")
    private Integer age;

    /** 性别（0：男  1：女 2：未知 ） */
    @Excel(name = "性别", readConverterExp = "0=：男,1=：女,2=：未知")
    private String sex;

    /** 薪水 */
    @Excel(name = "薪水")
    private Long salary;

    /** 身份证号码 */
    @Excel(name = "身份证号码")
    private String idCard;

    /** 居住地址 */
    @Excel(name = "居住地址")
    private String address;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 工龄 */
    @Excel(name = "工龄")
    private Integer seniority;

    /** 入职时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入职时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date entryTime;

    /** 职位id */
    @Excel(name = "职位id")
    private Long postId;

    /** 部门id */
    @Excel(name = "部门id")
    private Long deptId;

    /** 工作照图片地址 */
    @Excel(name = "工作照图片地址")
    private String avatar;

    /** 逻辑删除状态（0：未删除 1：已删除） */
    private String delFlag;

    /** 工作状态（0：工作中 1：休假 2：离职） */
    @Excel(name = "工作状态", readConverterExp = "0=：工作中,1=：休假,2=：离职")
    private String workStatus;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    public String getSupermarketName() {
        return supermarketName;
    }

    public void setSupermarketName(String supermarketName) {
        this.supermarketName = supermarketName;
    }

    public String getPostName() {
        return postName;
    }

    public void setPostName(String postName) {
        this.postName = postName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSupermarketId(Long supermarketId) 
    {
        this.supermarketId = supermarketId;
    }

    public Long getSupermarketId() 
    {
        return supermarketId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setAge(Integer age) 
    {
        this.age = age;
    }

    public Integer getAge() 
    {
        return age;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }
    public void setSalary(Long salary) 
    {
        this.salary = salary;
    }

    public Long getSalary() 
    {
        return salary;
    }
    public void setIdCard(String idCard) 
    {
        this.idCard = idCard;
    }

    public String getIdCard() 
    {
        return idCard;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setSeniority(Integer seniority) 
    {
        this.seniority = seniority;
    }

    public Integer getSeniority() 
    {
        return seniority;
    }
    public void setEntryTime(Date entryTime) 
    {
        this.entryTime = entryTime;
    }

    public Date getEntryTime() 
    {
        return entryTime;
    }
    public void setPostId(Long postId) 
    {
        this.postId = postId;
    }

    public Long getPostId() 
    {
        return postId;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setWorkStatus(String workStatus) 
    {
        this.workStatus = workStatus;
    }

    public String getWorkStatus() 
    {
        return workStatus;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("supermarketId", getSupermarketId())
            .append("supermarketName",getSupermarketName())
            .append("name", getName())
            .append("age", getAge())
            .append("sex", getSex())
            .append("salary", getSalary())
            .append("idCard", getIdCard())
            .append("address", getAddress())
            .append("phone", getPhone())
            .append("seniority", getSeniority())
            .append("entryTime", getEntryTime())
            .append("postId", getPostId())
            .append("postName",getPostName())
            .append("deptId", getDeptId())
            .append("avatar", getAvatar())
            .append("delFlag", getDelFlag())
            .append("workStatus", getWorkStatus())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("remarks", getRemarks())
            .toString();
    }
}
